<template>
  <view class="content">
    <button v-if="show" @tap="login" type="primary">手机号一键登录</button>
  </view>
</template>

<script>
export default {
  data() {
    return {
      show: false
    }
  },
  onLoad() {
     this.show = false;
     this.login();
  },
  methods: {
    login() {
      uni.login({
        provider: 'univerify',
        univerifyStyle: {
          fullScreen: true
        }
      })

    }
  }
}
</script>

<style></style>
